package com.sy.entity;

import org.springframework.stereotype.Component;

import java.sql.Date;

/**
 * @author csd
 * @version 1.0
 * @date 2020/9/14
 * @usage 作业实体类
 */
@Component
public class Homework {
    private Integer id;
    private String name;
    private Date ctime;
    private Date etime;
    private Integer teacherid;
    private Integer courseid;


    public Homework(String name, Date ctime, Date etime, Integer teacherid, Integer courseid) {
        this.name = name;
        this.ctime = ctime;
        this.etime = etime;
        this.teacherid = teacherid;
        this.courseid = courseid;
    }

    public Homework() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getEtime() {
        return etime;
    }

    public void setEtime(Date etime) {
        this.etime = etime;
    }

    public Integer getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(Integer teacherid) {
        this.teacherid = teacherid;
    }

    public Integer getCourseid() {
        return courseid;
    }

    public void setCourseid(Integer courseid) {
        this.courseid = courseid;
    }

    @Override
    public String toString() {
        return "Homework{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", ctime=" + ctime +
                ", etime=" + etime +
                ", teacherid=" + teacherid +
                ", courseid=" + courseid +
                '}';
    }
}
